<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否预约:</label>
        <div class="col-xs-12 col-sm-8">

            <span class="btn btn-success" id="is_subscribe">查看预约</span>
        </div>
    </div>
    <script>
        $(function(){
            $('#is_subscribe').on('click', function(){
                // if($(this).val() == 2){
                    layer.open({
                      type: 2,
                      area: ['700px', '450px'],
                      fixed: false, //不固定
                      maxmin: true,
                      content: 'appointments'
                    });
                // }
            })
        })
    </script>
    <div class="form-group">
        <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Appointment_id')}:</label> -->
        <div class="col-xs-12 col-sm-8">
            <input id="c-appointment_id"  class="form-control " name="row[appointment_id]" type="hidden" value="">
        </div>
    </div> 
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/index" data-field="username" class="form-control selectpage" name="row[user_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shop_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shop_id" data-rule="required" data-source="shop/index" class="form-control selectpage" name="row[shop_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('House_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-house_id" data-rule="required" data-source="house/index" class="form-control selectpage" name="row[house_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Skin_text')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-skin_text" class="form-control " rows="5" name="row[skin_text]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Problem')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-problem" class="form-control " rows="5" name="row[problem]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Operate_detail')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-operate_detail" class="form-control " rows="5" name="row[operate_detail]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sug_goods')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-sug_goods" class="form-control " rows="5" name="row[sug_goods]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Adviser_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-adviser_id" data-rule="required" data-source="adviser/index" class="form-control selectpage" name="row[adviser_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Advisers_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-advisers_id" data-rule="required" data-source="advisers/index" class="form-control selectpage" name="row[advisers_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warehouse_operator')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-warehouse_operator" class="form-control" name="row[warehouse_operator]" type="number">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>














